package com.ws.core.handle;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * Created by WS on 2018/1/25.
 */
public interface BaseEnum<T> {
    //加@JsonValue注解避免枚举输出时是枚举而不是枚举的code
    @JsonValue
    <T> T getCode();
}
